package com.itheima.zhuanhuan;

import java.io.FileOutputStream;
import java.io.OutputStreamWriter;

/*
字符->字节
输出流
OutputStreamWriter


 */
public class Demo02 {


    public static void main(String[] args) throws Exception {
        //将字符 转换成 字节   出
        OutputStreamWriter writer = new OutputStreamWriter(new FileOutputStream("day13\\aaa\\ccc.txt"),"gbk");
        writer.write("嘿嘿嘿 ,我最帅");
        writer.close();

    }
}
